<?php

// no direct access
defined('_JEXEC') or die('Restricted access'); 

JHTML::_('behavior.tooltip');
$option = JRequest::getVar('option');
JHTML::stylesheet('base.css', JURI::root().'/components/com_simplelisting/css/');

?>

<?php 
$content=JRequest::getVar('content');   
$lang=JRequest::getVar('lang');
$filename=JRequest::getVar('filename');
$client	=JRequest::getVar('client');
   
?>
<div id="poweredbycw">
    <?php
       echo "<p>"; echo JText::_('TRANS_CURRENT').' : <font color="green">'.JText::_($client->name).'</font>  '.JText::_('TRANS_LANGUAGE').' : <font color="green">'.$lang.'  </font>'.JText::_('TRANS_FILE').' : <font color="green">'.$filename.'</font>'; echo "</p>"
    ?>
</div>
<form action="index.php" method="post" name="adminForm">

<fieldset class="adminform">
<legend><?php echo JText::_('HEADER_LANGUAGE_EDIT') ?></legend>
    <table class="adminform">
        <tr>
            <td>
                <textarea style="width:100%;height:500px" cols="110" rows="25" name="filecontent" class="inputbox"><?php echo $content; ?></textarea>
            </td>
        </tr>
    </table>
</fieldset>


    <input type="hidden" name="filename" value="<?php echo $filename; ?>" />
    <input type="hidden" name="id" value="<?php echo $lang; ?>" />
    <input type="hidden" name="cid[]" value="<?php echo $lang; ?>" />
    <input type="hidden" name="option" value="<?php echo $option;?>" />
    <input type="hidden" name="task" value="" />
    <input type="hidden" name="boxchecked" value="0" />
    <input type="hidden" name="client" value="<?php echo $client->id;?>" />
    <input type="hidden" name="controller" value="languages" />

    <?php echo JHTML::_( 'form.token' ); ?>
</form>